<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('upkeep/index')}">项目列表</a></li>
			<li><a href="{:url('upkeep/add')}">添加维保项目</a></li>
		</ul>
        <form method="post" class="js-ajax-form margin-top-20" action="{:url('upkeep/list_sort')}">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>项目内容</th>
						<th width="240">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="list" item="vo">
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.title}</td>
							<td>
								<a class="btn btn-xs btn-primary" href='{:url("upkeep/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
								<a class="btn btn-xs btn-danger js-ajax-delete" href='{:url("upkeep/delete",array("id"=>$vo["id"]))}'>{:lang('DELETE')}</a>
							</td>
						</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>